package com.copa.ums.common.exception;

import com.copa.ums.common.api.IErrorCode;

/**
 * @author copa
 * @createDate 2022-10-31 15:46
 * @function 断言处理类，用于抛出各种API异常
 */
public class Asserts {

    public static void fail(String message) {
        throw new ApiException(message);
    }

    public static void fail(IErrorCode errorCode) {
        throw new ApiException(errorCode);
    }
}
